<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of PageSubs
 *
 * @author seth
 */
class PageSubs {
    //put your code here
     var $catid;
    var $contentid;
    var $ptitle;
    var $category;
    var $directlink;
    var $summary;
    var $picture;
    var $startdate;
    var $fulldate;
    var $enddate;
    var $listype;
    var $fxn ;
    function  __construct($contentid,$categoryname,$pcontent,$directlink,$picture,$startdat,$enddate,$listype,$fulldate,$fx) {

      $this->catid =$contentid;
      $this->category= $categoryname;
      $this->ptitle=$categoryname;
      $this->summary = $pcontent;
      $this->directlink=$directlink;
      $this->contentid = $contentid;
      $this->picture=$picture;
      $this->fulldate = $fulldate;
      $this->startdate =$startdat;
      $this->enddate =$enddate;
$this->listype = $listype;
 $this->fxn= $fx;
    }

     function getPageExtraInfo()
    {
	
        return  $this->fxn->pageExtraInfo($this->listype, $this->startdate, $this->enddate,"short","");
    }
    function getURL()
    {

       return $this->fxn->processURL("page", $this->contentid, $this->category, $this->directlink);
    }
}
?>
